import { postAction } from '@/api/manage'
import { getAction } from '@/api/manage'
// 通用
export const pattern = '/basemgt-rd'
export const uploadUrl = `https://bzhz.jnbygroup.com/api/gateway/basemgt-rd/img/upload`

//数据字典模块
export const getDictList = (key, params) => postAction(`${pattern}/${key}/getList`, params)
export const dictCreate = (key, params) => postAction(`${pattern}/${key}/save`, params)
export const dictUpdate = (key, params) => postAction(`${pattern}/${key}/update`, params)
export const dictDelete = (key, params) => postAction(`${pattern}/${key}/delete`, params)
//数据字典子项
export const getDictChildList = (key, params) => postAction(`${pattern}/${key}/getDetails`, params)
export const getDictRelation = (key, params) => postAction(`${pattern}/${key}/getDictRelation`, params)
export const detailCreate = (key, params) => postAction(`${pattern}/${key}/saveDetail`, params)
export const detailUpdate = (key, params) => postAction(`${pattern}/${key}/updateDetail`, params)
export const saveDictRelation = (key, params) => postAction(`${pattern}/${key}/saveDictRelation`, params)
export const detailDelete = (key, params) => postAction(`${pattern}/${key}/deleteDetail`, params)
//工艺模板//工艺库
export const getList = (key, params) => postAction(`${pattern}/craft/${key}/getList`, params)
export const getDetail = (key, params) => postAction(`${pattern}/craft/${key}/getDetail`, params)
export const getTemList = (key, params) => postAction(`${pattern}/craft/${key}/getTemplate`, params)
export const createList = (key, params) => postAction(`${pattern}/craft/${key}/save`, params)
export const updatelist = (key, params) => postAction(`${pattern}/craft/${key}/update`, params)
export const deleteList = (key, params) => postAction(`${pattern}/craft/${key}/delete`, params)
//工艺单
export const getBillList = (key, params) => postAction(`${pattern}/design/${key}/getBill`, params)
export const getBillTable = (key, params) => postAction(`${pattern}/design/${key}/searchCraftBill`, params)
export const getDetailList = (key, params) => postAction(`${pattern}/craft/${key}/getBill`, params)
export const getA4Print = (key, params) => postAction(`${pattern}/${key}/getA4Print`, params)
export const getA3Print = (key, params) => postAction(`${pattern}/${key}/getA3Print`, params)
export const getSpecPrint = (key, params) => postAction(`${pattern}/${key}/getSpecPrint`, params)
export const getSpecImgPrint = (key, params) => postAction(`${pattern}/${key}/getSpecImgPrint`, params)
export const getSizePrint = (key, params) => postAction(`${pattern}/${key}/getSizePrint`, params)
export const getSizeList = (key, params) => postAction(`${pattern}/${key}/getSizeList`, params)
export const getBillSize = (key, params) => postAction(`${pattern}/${key}/getList`, params)
export const updateSize = (key, params) => postAction(`${pattern}/${key}/update`, params)
export const saveSize = (key, params) => postAction(`${pattern}/${key}/save`, params)

export const getJumpSize = (key, params) => postAction(`${pattern}/${key}/getJumpSize`, params)
export const changeStatus = (key, params) => postAction(`${pattern}/craft/${key}/status`, params)
//粘衬部位
export const getInterliningList = (key, params) => postAction(`${pattern}/craft/${key}/getInterliningList`, params)
export const saveInterlining = (key, params) => postAction(`${pattern}/craft/${key}/saveInterlining`, params)
export const updateInterlining = (key, params) => postAction(`${pattern}/craft/${key}/updateInterlining`, params)
export const deleteInterlining = (key, params) => postAction(`${pattern}/craft/${key}/deleteInterlining`, params)
//工艺
export const getTemplateList = (key, params) => postAction(`${pattern}/craft/${key}/getTemplateList`, params)
export const saveTemplate = (key, params) => postAction(`${pattern}/craft/${key}/saveTemplate`, params)
export const updateTemplate = (key, params) => postAction(`${pattern}/craft/${key}/updateTemplate`, params)
export const deleteTemplate = (key, params) => postAction(`${pattern}/craft/${key}/deleteTemplate`, params)
//部位
export const getPartList = (key, params) => postAction(`${pattern}/craft/${key}/getPartList`, params)
export const savePart = (key, params) => postAction(`${pattern}/craft/${key}/savePart`, params)
export const updatePart = (key, params) => postAction(`${pattern}/craft/${key}/updatePart`, params)
export const deletePart = (key, params) => postAction(`${pattern}/craft/${key}/deletePart`, params)
//特殊工艺
export const getSpecList = (key, params) => postAction(`${pattern}/craft/${key}/getSpecList`, params)
export const saveSpec = (key, params) => postAction(`${pattern}/craft/${key}/saveSpec`, params)
export const updateSpec = (key, params) => postAction(`${pattern}/craft/${key}/updateSpec`, params)
export const deleteSpec = (key, params) => postAction(`${pattern}/craft/${key}/deleteSpec`, params)
//校服校标
export const getSchoolList = (key, params) => postAction(`${pattern}/craft/${key}/getSchoolList`, params)
export const saveSchool = (key, params) => postAction(`${pattern}/craft/${key}/saveSchool`, params)
export const updateSchool = (key, params) => postAction(`${pattern}/craft/${key}/updateSchool`, params)
export const deleteSchool = (key, params) => postAction(`${pattern}/craft/${key}/deleteSchool`, params)

//封样单
export const getFyBillDetail = (params) => postAction(`${pattern}/seal/getSeal`,params)
export const getFyBill = (params) => postAction(`${pattern}/seal/getList`,params)
export const updateFyDet = (params) => postAction(`${pattern}/seal/updateSeal`,params)
export const approveSealBill = (params) => postAction(`${pattern}/seal/approveSeal`,params)
export const unApproveSealBill = (params) => postAction(`${pattern}/seal/unApproveSeal`,params)

//封样尺寸单
export const getSealSizeList = (params) => postAction(`${pattern}/size/getSealSizeList`,params)
export const importSealSize = (params) => postAction(`${pattern}/size/importSize`,params)
export const updateSealSize = (params) => postAction(`${pattern}/size/updateSealSize`,params)
export const getSealSizePrint = (params) => postAction(`${pattern}/print/getSealPrint`,params)
export const getSealSizeIsPrint = (params) => postAction(`${pattern}/size/getSealPrintSize`,params)
export const updateSealPrintSize = (params) => postAction(`${pattern}/size/updateSealPrintSize`,params)

//封样单问题
export const getSealIssuesList = (params) => postAction(`${pattern}/seal/getProblemList`,params)
export const getSealIssuesDetail = (params) => postAction(`${pattern}/seal/getProblem`,params)
export const saveSealIssues = (params) => postAction(`${pattern}/seal/saveProblem`,params)
export const deleteSealIssues = (params) => postAction(`${pattern}/seal/deleteProblem`,params)
export const updateSealIssues = (params) => postAction(`${pattern}/seal/updateProblem`,params)

//图片上传
export const uploadPic = (params) => postAction(`${pattern}/img/upload`,params)